<%@ page import="com.informet.ipd.modelo.dao.MActividadDao" %>
<%@ page import="com.informet.ipd.modelo.vo.MActividadVO" %>
<%@ page import="com.informet.ipd.struts.form.PEIForm" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.swing.JOptionPane"%>
<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/tags/c" prefix="c"%>

<%

            StringBuffer cadenaSalida = new StringBuffer();
            List lista = null;

          
            MActividadDao supportFacade = new MActividadDao();
            PEIForm form = new PEIForm();
            
            try {
                
                int id = Integer.parseInt(request.getParameter("id"));
         
               
                MActividadVO vo;
                lista = supportFacade.getCombo(id);
                form.setListaMetaAct(lista);
                
                cadenaSalida.append("<select  name='codMetaAPer' id='codMetaAPer' onchange='filtradoMetaAPermanente()' >");
                cadenaSalida.append(" <option value='-1'>[--Seleccionar Act Permanente--]</option>");

                Iterator it = lista.iterator();
                while (it.hasNext()) {
                    vo = (MActividadVO) it.next();

                
                    cadenaSalida.append("<option value='"+vo.getNUM_CODMETAAPER_PK()+"'>"+vo.getTX_UMACTPER()+"</option>");
                  

                   
                }
                 cadenaSalida.append("</select>");
            } catch (Exception e) {
                    cadenaSalida.append("error : "+e.toString());
            }
            out.print(cadenaSalida);
%>